import java.util.Scanner;

public class OOPScore {
//属性，全局变量
    int javaScore;
    int CScore;
    int SQLScore;

    public void inputScore(){
        Scanner input = new Scanner(System.in);
        System.out.println("请输入Java成绩：");
        javaScore = input.nextInt();
        System.out.println("请输入C成绩：");
        CScore = input.nextInt();
        System.out.println("SQL：");
        SQLScore = input.nextInt();
    }
//计算平均分并返回
    public double calcAvg(){
        double av = (javaScore+CScore+SQLScore)/3.0;
        return  av ;
    }
    public int calcSum(){
        int sum = javaScore+CScore+SQLScore;
        return sum ;
    }

    public static void main(String[] args) {
        OOPScore score = new OOPScore();
        score.inputScore();
        double avg = score.calcAvg();
        int sum = score.calcSum() ;

        System.out.println(avg+" "+sum);
    }

}
